package com.ilock.service;

import java.util.List;
import java.util.Map;

import com.ilock.bean.Ilockinfo;
import com.ilock.bean.Templockinfo;
import com.ilock.bean.Templockop;

public interface ILockService {
	
	public Ilockinfo checkLockInfo(int locknumber,String password);
	
	
	
	public Ilockinfo findLockInfoByToken(String token);
	
	public Ilockinfo updateLockInfo(Ilockinfo ilockinfo);
	
	public Map<String,Object> bindLock(int userID,int lockID,String password);
	
	public Ilockinfo getNewToken(String password);
	
	public Ilockinfo checkUserIDExist(int userID);//检验用户ID是否存在
	
	public List getUserLockList(int integer);
	
	public List getUserLockIDList(int userID);
	
	public void addShare(int userID,int lockID);//添加共享用户的锁使用权限
	
	public boolean checkOwner(int userID,int lockID);//检验该用户是否为锁主人
	
	public boolean checkShareExist(int userID,int lockID);//检验共享是否已经绑定
	
	public void deleteOwnLock(int userID);
	
	public Templockinfo insertTempLockInfo(int userID,int lockID,String temppassword);
	
	public Templockinfo findTemplockInfo(int userID);
	
	public void deleteTempLockInfo(int userID);
	
	public Templockop addTempLockOp(int userID,int lockID,int operate);
	
	public void deleteTempLockOp(int lockID);
	
	public Templockop findTempLockOp(int lockID);
	
	public Templockop updateTempLockOp(int lockID);
	
	public void updateTempLockOp(Templockop templockop);

}
